package com.bawei.property.api

import com.bawei.common.api.BaseApiServer
import com.bawei.network.BaseResponse
import com.bawei.property.entity.CarColorResultEntity
import com.bawei.property.entity.ParkListResultEntity
import com.bawei.property.entity.UploadImgResultEntity
import okhttp3.MultipartBody
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

/**
 * Author: Jason Zhang
 * Date: 2024/8/28
 * Desc: 物业管理的相关接口
 */
interface PropertyApiServer: BaseApiServer {

    //查询车位列表
    @POST("/sysParking/selParking")
    suspend fun getParkingList(): ParkListResultEntity

    @POST("/sysColor/selColor")
    suspend fun getColorList(): CarColorResultEntity

    //车辆图片上传
    @Multipart
    @POST("fileUpload")
    suspend fun uploadCarImages(@Part list: MutableList<MultipartBody.Part>): UploadImgResultEntity

}